
package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.monlyu.annotation.Comment;

@Entity(name = "t_permission")
@Comment(common = "权限表")
public class Permission extends BaseVo {

    @Id
    @Comment(common = "主键ID")
    @Column(name = "t_uuid")
    private Long uuid;

    @Column(name = "p_id")
    @Comment(common = "权限ID")
    private String id;

    @Column(name = "p_desc", length = LENGTH_50, nullable = false)
    @Comment(common = "权限描述")
    private String desc;

    @Column(name = "p_type", length = LENGTH_50, nullable = false)
    @Comment(common = "权限类型")
    private String type;

    @Column(name = "p_order")
    @Comment(common = "权限显示顺序")
    private int order;

    public String getId(){
        return id;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getDesc(){
        return desc;
    }

    public void setDesc(String desc){
        this.desc = desc;
    }

    public String getType(){
        return type;
    }

    public void setType(String type){
        this.type = type;
    }

    public int getOrder(){
        return order;
    }

    public void setOrder(int order){
        this.order = order;
    }

    public Long getUuid(){
        return uuid;
    }

    public void setUuid(Long uuid){
        this.uuid = uuid;
    }
}
